﻿using System;
using UnityEditor;
using UnityEngine;

namespace JetBrains.Rider.Unity.Editor
{
    [CreateAssetMenu(fileName = "EditorTSConfig")]
    public class EditorTSConfig : ScriptableObject
    {
        public bool LoggerOpenTs = true;

        private static EditorTSConfig inst; 
        public static EditorTSConfig Instance
        {
            get
            {
                if (inst)
                    return inst;
                return inst = Resources.Load<EditorTSConfig>("EditorTSConfig");
            }
        }
        [MenuItem("Puerts/EditorTSConfig")]
        static void create()
        {
            UnityEditor.Selection.SetActiveObjectWithContext(Instance,null);
        }
    }
    
}